using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using ResidencyPlacement;

namespace ResidencyPlacementWPF
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : System.Windows.Application
    {
        private static ResidencySystem system;

        [STAThread()]
        static void Main()
        {
            system = new ResidencySystem();

            Student kimYang = new Student(1072, "Kim Yang");
            kimYang.ChangeEntranceExamMark(98);

            Student stacyJackson = new Student(2056, "Stacy Jackson");
            stacyJackson.ChangeEntranceExamMark(92);

            Student mikeLawron = new Student(6745, "Mike Lawron");
            mikeLawron.ChangeEntranceExamMark(91);

            Student cathyPullman = new Student(5737, "Cathy Pullman");
            cathyPullman.ChangeEntranceExamMark(98);

            Student randalStork = new Student(2564, "Randal Stork");
            randalStork.ChangeEntranceExamMark(97);

            Student joeyClover = new Student(9674, "Joey Clover");
            joeyClover.ChangeEntranceExamMark(93);

            Student mitchelMaggie = new Student(1536, "Mitchel Maggie");
            mitchelMaggie.ChangeEntranceExamMark(97);

            Student ramuShanmugam = new Student(3783, "Ramu Shanmugam");
            ramuShanmugam.ChangeEntranceExamMark(98);

            Student chrisBurston = new Student(5747, "Chris Burston");
            chrisBurston.ChangeEntranceExamMark(92);

            Student heWang = new Student(7773, "He Wang");
            heWang.ChangeEntranceExamMark(94);

            Student johnPeterson = new Student(3225, "John Peterson");
            johnPeterson.ChangeEntranceExamMark(93);

            Student lucyGerald = new Student(7246, "Lucy Gerald");
            lucyGerald.ChangeEntranceExamMark(94);

            Student jenniferMcIntosh = new Student(6699, "Jennifer McIntosh");
            jenniferMcIntosh.ChangeEntranceExamMark(96);

            Student jianXiang = new Student(1115, "Jian Xiang");
            jianXiang.ChangeEntranceExamMark(98);

            Student geethaRamesh = new Student(2835, "Geetha Ramesh");
            geethaRamesh.ChangeEntranceExamMark(97);

            Student cindyMylopoulos = new Student(8976, "Cindy Mylopoulos");
            cindyMylopoulos.ChangeEntranceExamMark(94);

            Hospital madisonChildren = new Hospital(74959, "Madison Children's Hospital", "Madison", 1);
            Hospital northwesternMemorial = new Hospital(57474, "Northwestern Memorial Hospital", "Chicago", 2);
            Hospital mercyMedical = new Hospital(59885, "Mercy Medical Center", "Napperville", 3);
            Hospital universityOfChicago = new Hospital(53347, "University of Chicago Hospital", "Chicago", 3);
            Hospital kingsCounty = new Hospital(16748, "Kings County Hospital", "New York", 3);
            Hospital newYorkCommunity = new Hospital(17853, "New York Community Hospital", "Brooklyn", 2);
            Hospital harlemMedical = new Hospital(12744, "Harlem Medical Center", "Manhattan", 3);
            Hospital bloomingtonCity = new Hospital(15552, "Bloomington City Hospital", "Bloomington", 2);
            Hospital monroeVeterans = new Hospital(36857, "Monroe Veterans Hospital", "Rochester", 2);
            Hospital fairviewHealth = new Hospital(85654, "Fairview Health Services", "Minneapolis", 2);

            try
            {
                system.AddHospital(madisonChildren);
                system.AddHospital(northwesternMemorial);
                system.AddHospital(mercyMedical);
                system.AddHospital(universityOfChicago);
                system.AddHospital(kingsCounty);
                system.AddHospital(newYorkCommunity);
                system.AddHospital(harlemMedical);
                system.AddHospital(bloomingtonCity);
                system.AddHospital(monroeVeterans);
                system.AddHospital(fairviewHealth);
                system.AddStudent(kimYang);
                system.AddStudent(stacyJackson);
                system.AddStudent(mikeLawron);
                system.AddStudent(cathyPullman);
                system.AddStudent(randalStork);
                system.AddStudent(joeyClover);
                system.AddStudent(mitchelMaggie);
                system.AddStudent(ramuShanmugam);
                system.AddStudent(chrisBurston);
                system.AddStudent(heWang);
                system.AddStudent(johnPeterson);
                system.AddStudent(lucyGerald);
                system.AddStudent(jenniferMcIntosh);
                system.AddStudent(jianXiang);
                system.AddStudent(geethaRamesh);
                system.AddStudent(cindyMylopoulos);

                ResidencyPlacement.Application kimYang12744 = new ResidencyPlacement.Application();
                kimYang12744.Hospital = 12744;
                system.StudentAppliesToAHospital(kimYang, harlemMedical, kimYang12744);

                ResidencyPlacement.Application kimYang15552 = new ResidencyPlacement.Application();
                kimYang15552.Hospital = 15552;
                system.StudentAppliesToAHospital(kimYang, bloomingtonCity, kimYang15552);

                ResidencyPlacement.Application kimYang16748 = new ResidencyPlacement.Application();
                kimYang16748.Hospital = 16748;
                system.StudentAppliesToAHospital(kimYang, kingsCounty, kimYang16748);

                ResidencyPlacement.Application kimYang17853 = new ResidencyPlacement.Application();
                kimYang17853.Hospital = 17853;
                system.StudentAppliesToAHospital(kimYang, newYorkCommunity, kimYang17853);

                ResidencyPlacement.Application kimYang36857 = new ResidencyPlacement.Application();
                kimYang36857.Hospital = 36857;
                system.StudentAppliesToAHospital(kimYang, monroeVeterans, kimYang36857);

                system.StudentAttendsInterview(kimYang, kingsCounty, 20);
                system.StudentAttendsInterview(kimYang, newYorkCommunity, 20);
                system.StudentAttendsInterview(kimYang, bloomingtonCity, 20);
                system.StudentAttendsInterview(kimYang, harlemMedical, 19);
                system.StudentIsSelectedAndOffered(kimYang, kingsCounty);
                system.StudentIsSelectedAndOffered(kimYang, newYorkCommunity);
                system.StudentIsSelectedAndOffered(kimYang, bloomingtonCity);
                system.StudentRepliesToOffer(kimYang, kingsCounty, true);

                ResidencyPlacement.Application stacyJackson74959 = new ResidencyPlacement.Application();
                stacyJackson74959.Hospital = 74959;
                system.StudentAppliesToAHospital(stacyJackson, madisonChildren, stacyJackson74959);

                ResidencyPlacement.Application stacyJackson85654 = new ResidencyPlacement.Application();
                stacyJackson85654.Hospital = 85654;
                system.StudentAppliesToAHospital(stacyJackson, fairviewHealth, stacyJackson85654);

                ResidencyPlacement.Application stacyJackson57474 = new ResidencyPlacement.Application();
                stacyJackson57474.Hospital = 57474;
                system.StudentAppliesToAHospital(stacyJackson, northwesternMemorial, stacyJackson57474);

                ResidencyPlacement.Application stacyJackson59885 = new ResidencyPlacement.Application();
                stacyJackson59885.Hospital = 59885;
                system.StudentAppliesToAHospital(stacyJackson, mercyMedical, stacyJackson59885);

                ResidencyPlacement.Application stacyJackson53347 = new ResidencyPlacement.Application();
                stacyJackson53347.Hospital = 53347;
                system.StudentAppliesToAHospital(stacyJackson, universityOfChicago, stacyJackson53347);

                system.StudentAttendsInterview(stacyJackson, northwesternMemorial, 17);
                system.StudentAttendsInterview(stacyJackson, universityOfChicago, 17);

                ResidencyPlacement.Application mikeLawron74959 = new ResidencyPlacement.Application();
                mikeLawron74959.Hospital = 74959;
                system.StudentAppliesToAHospital(mikeLawron, madisonChildren, mikeLawron74959);

                ResidencyPlacement.Application mikeLawron57474 = new ResidencyPlacement.Application();
                mikeLawron57474.Hospital = 57474;
                system.StudentAppliesToAHospital(mikeLawron, northwesternMemorial, mikeLawron57474);

                ResidencyPlacement.Application mikeLawron16748 = new ResidencyPlacement.Application();
                mikeLawron16748.Hospital = 16748;
                system.StudentAppliesToAHospital(mikeLawron, kingsCounty, mikeLawron16748);

                ResidencyPlacement.Application mikeLawron36857 = new ResidencyPlacement.Application();
                mikeLawron36857.Hospital = 36857;
                system.StudentAppliesToAHospital(mikeLawron, monroeVeterans, mikeLawron36857);

                ResidencyPlacement.Application mikeLawron85654 = new ResidencyPlacement.Application();
                mikeLawron85654.Hospital = 85654;
                system.StudentAppliesToAHospital(mikeLawron, fairviewHealth, mikeLawron85654);

                system.StudentAttendsInterview(mikeLawron, madisonChildren, 16);
                system.StudentAttendsInterview(mikeLawron, monroeVeterans, 19);

		        ResidencyPlacement.Application cathyPullman74959 = new ResidencyPlacement.Application();
                cathyPullman74959.Hospital = 74959;
                system.StudentAppliesToAHospital(cathyPullman, madisonChildren, cathyPullman74959);

		        ResidencyPlacement.Application cathyPullman57474 = new ResidencyPlacement.Application();
                cathyPullman57474.Hospital = 57474;
                system.StudentAppliesToAHospital(cathyPullman, northwesternMemorial, cathyPullman57474);

		        ResidencyPlacement.Application cathyPullman59885 = new ResidencyPlacement.Application();
                cathyPullman59885.Hospital = 59885;
                system.StudentAppliesToAHospital(cathyPullman, mercyMedical, cathyPullman59885);

		        ResidencyPlacement.Application cathyPullman53347 = new ResidencyPlacement.Application();
                cathyPullman53347.Hospital = 53347;
                system.StudentAppliesToAHospital(cathyPullman, universityOfChicago, cathyPullman53347);		

		        ResidencyPlacement.Application cathyPullman12744 = new ResidencyPlacement.Application();
                cathyPullman12744.Hospital = 12744;
                system.StudentAppliesToAHospital(cathyPullman, harlemMedical, cathyPullman12744);

		        ResidencyPlacement.Application cathyPullman15552 = new ResidencyPlacement.Application();
                cathyPullman15552.Hospital = 15552;
                system.StudentAppliesToAHospital(cathyPullman, bloomingtonCity, cathyPullman15552);

                ResidencyPlacement.Application cathyPullman85654 = new ResidencyPlacement.Application();
                cathyPullman85654.Hospital = 85654;
                system.StudentAppliesToAHospital(cathyPullman, fairviewHealth, cathyPullman85654);
		
                system.StudentAttendsInterview(cathyPullman, bloomingtonCity, 20);
                system.StudentAttendsInterview(cathyPullman, fairviewHealth, 20);
                system.StudentAttendsInterview(cathyPullman, mercyMedical, 19);
                system.StudentIsSelectedAndOffered(cathyPullman, mercyMedical);
                system.StudentRepliesToOffer(cathyPullman, mercyMedical, false);
                system.StudentAttendsInterview(cathyPullman, universityOfChicago, 19);
                system.StudentAttendsInterview(cathyPullman, harlemMedical, 20);

                system.StudentIsSelectedAndOffered(cathyPullman, bloomingtonCity);
                system.StudentIsSelectedAndOffered(cathyPullman, fairviewHealth);
                system.StudentIsSelectedAndOffered(cathyPullman, harlemMedical);

                system.StudentRepliesToOffer(cathyPullman, harlemMedical, true);

                ResidencyPlacement.Application randalStork85654 = new ResidencyPlacement.Application();
                randalStork85654.Hospital = 85654;
                system.StudentAppliesToAHospital(randalStork, fairviewHealth, randalStork85654);

                ResidencyPlacement.Application randalStork53347 = new ResidencyPlacement.Application();
                randalStork53347.Hospital = 53347;
                system.StudentAppliesToAHospital(randalStork, universityOfChicago, randalStork53347);

                ResidencyPlacement.Application randalStork36857 = new ResidencyPlacement.Application();
                randalStork36857.Hospital = 36857;
                system.StudentAppliesToAHospital(randalStork, monroeVeterans, randalStork36857);

                system.StudentAttendsInterview(randalStork, fairviewHealth, 19);
                system.StudentAttendsInterview(randalStork, universityOfChicago, 20);
                system.StudentAttendsInterview(randalStork, monroeVeterans, 19);

                system.StudentIsSelectedAndOffered(randalStork, fairviewHealth);
                system.StudentIsSelectedAndOffered(randalStork, universityOfChicago);
                system.StudentIsSelectedAndOffered(randalStork, monroeVeterans);

                system.StudentRepliesToOffer(randalStork, monroeVeterans, true);

                ResidencyPlacement.Application joeyClover53347 = new ResidencyPlacement.Application();
                joeyClover53347.Hospital = 53347;
                system.StudentAppliesToAHospital(joeyClover, universityOfChicago, joeyClover53347);

                ResidencyPlacement.Application joeyClover59885 = new ResidencyPlacement.Application();
                joeyClover59885.Hospital = 59885;
                system.StudentAppliesToAHospital(joeyClover, mercyMedical, joeyClover59885);

                ResidencyPlacement.Application mitchelMaggie57474 = new ResidencyPlacement.Application();
                mitchelMaggie57474.Hospital = 57474;
                system.StudentAppliesToAHospital(mitchelMaggie, northwesternMemorial, mitchelMaggie57474);

                ResidencyPlacement.Application mitchelMaggie53347 = new ResidencyPlacement.Application();
                mitchelMaggie53347.Hospital = 53347;
                system.StudentAppliesToAHospital(mitchelMaggie, universityOfChicago, mitchelMaggie53347);

                ResidencyPlacement.Application mitchelMaggie15552 = new ResidencyPlacement.Application();
                mitchelMaggie15552.Hospital = 15552;
                system.StudentAppliesToAHospital(mitchelMaggie, bloomingtonCity, mitchelMaggie15552);

                system.StudentAttendsInterview(mitchelMaggie, northwesternMemorial, 19);
                system.StudentAttendsInterview(mitchelMaggie, universityOfChicago, 18);

                system.StudentIsSelectedAndOffered(mitchelMaggie, northwesternMemorial);

                system.StudentRepliesToOffer(mitchelMaggie, northwesternMemorial, true);

                ResidencyPlacement.Application ramuShanmugam74959 = new ResidencyPlacement.Application();
                ramuShanmugam74959.Hospital = 74959;
                system.StudentAppliesToAHospital(ramuShanmugam, madisonChildren, ramuShanmugam74959);

                system.StudentAttendsInterview(ramuShanmugam, madisonChildren, 19);
                system.StudentIsSelectedAndOffered(ramuShanmugam, madisonChildren);

                ResidencyPlacement.Application ramuShanmugam57474 = new ResidencyPlacement.Application();
                ramuShanmugam57474.Hospital = 57474;
                system.StudentAppliesToAHospital(ramuShanmugam, northwesternMemorial, ramuShanmugam57474);

                ResidencyPlacement.Application ramuShanmugam53347 = new ResidencyPlacement.Application();
                ramuShanmugam53347.Hospital = 53347;
                system.StudentAppliesToAHospital(ramuShanmugam, universityOfChicago, ramuShanmugam53347);

                system.StudentAttendsInterview(ramuShanmugam, universityOfChicago, 19);
                system.StudentIsSelectedAndOffered(ramuShanmugam, universityOfChicago);

                ResidencyPlacement.Application ramuShanmugam59885 = new ResidencyPlacement.Application();
                ramuShanmugam59885.Hospital = 59885;
                system.StudentAppliesToAHospital(ramuShanmugam, mercyMedical, ramuShanmugam59885);
                

                system.StudentAttendsInterview(ramuShanmugam, mercyMedical, 19);

                system.StudentIsSelectedAndOffered(ramuShanmugam, mercyMedical);
                system.StudentRepliesToOffer(ramuShanmugam, mercyMedical, false);

                ResidencyPlacement.Application ramuShanmugam12744 = new ResidencyPlacement.Application();
                ramuShanmugam12744.Hospital = 12744;
                system.StudentAppliesToAHospital(ramuShanmugam, harlemMedical, ramuShanmugam12744);

                system.StudentAttendsInterview(ramuShanmugam, harlemMedical, 20);
                system.StudentIsSelectedAndOffered(ramuShanmugam, harlemMedical);
                system.StudentRepliesToOffer(ramuShanmugam, harlemMedical, true);

                ResidencyPlacement.Application ramuShanmugam15552 = new ResidencyPlacement.Application();
                ramuShanmugam15552.Hospital = 15552;
                system.StudentAppliesToAHospital(ramuShanmugam, bloomingtonCity, ramuShanmugam15552);

                system.StudentAttendsInterview(ramuShanmugam, bloomingtonCity, 18);
                
                ResidencyPlacement.Application ramuShanmugam16748 = new ResidencyPlacement.Application();
                ramuShanmugam16748.Hospital = 16748;
                system.StudentAppliesToAHospital(ramuShanmugam, kingsCounty, ramuShanmugam16748);

                ResidencyPlacement.Application ramuShanmugam17853 = new ResidencyPlacement.Application();
                ramuShanmugam17853.Hospital = 17853;
                system.StudentAppliesToAHospital(ramuShanmugam, newYorkCommunity, ramuShanmugam17853);

                ResidencyPlacement.Application ramuShanmugam36857 = new ResidencyPlacement.Application();
                ramuShanmugam36857.Hospital = 36857;
                system.StudentAppliesToAHospital(ramuShanmugam, monroeVeterans, ramuShanmugam36857);

                ResidencyPlacement.Application chrisBurston85654 = new ResidencyPlacement.Application();
                chrisBurston85654.Hospital = 85654;
                system.StudentAppliesToAHospital(chrisBurston, fairviewHealth, chrisBurston85654);

                ResidencyPlacement.Application chrisBurston59885 = new ResidencyPlacement.Application();
                chrisBurston59885.Hospital = 59885;
                system.StudentAppliesToAHospital(chrisBurston, mercyMedical, chrisBurston59885);

                ResidencyPlacement.Application chrisBurston12744 = new ResidencyPlacement.Application();
                chrisBurston12744.Hospital = 12744;
                system.StudentAppliesToAHospital(chrisBurston, harlemMedical, chrisBurston12744);

                ResidencyPlacement.Application chrisBurston16748 = new ResidencyPlacement.Application();
                chrisBurston16748.Hospital = 16748;
                system.StudentAppliesToAHospital(chrisBurston, kingsCounty, chrisBurston16748);

                ResidencyPlacement.Application chrisBurston74959 = new ResidencyPlacement.Application();
                chrisBurston74959.Hospital = 74959;
                system.StudentAppliesToAHospital(chrisBurston, madisonChildren, chrisBurston74959);

                system.StudentAttendsInterview(chrisBurston, kingsCounty, 18);

                ResidencyPlacement.Application heWang12744 = new ResidencyPlacement.Application();
                heWang12744.Hospital = 12744;
                system.StudentAppliesToAHospital(heWang, harlemMedical, heWang12744);

                system.StudentAttendsInterview(heWang, harlemMedical, 19);
                system.StudentIsSelectedAndOffered(heWang, harlemMedical);
                system.StudentRepliesToOffer(heWang, harlemMedical, true);

                ResidencyPlacement.Application heWang15552 = new ResidencyPlacement.Application();
                heWang15552.Hospital = 15552;
                system.StudentAppliesToAHospital(heWang, bloomingtonCity, heWang15552);

                system.StudentAttendsInterview(heWang, bloomingtonCity, 18);

                ResidencyPlacement.Application heWang85654 = new ResidencyPlacement.Application();
                heWang85654.Hospital = 85654;
                system.StudentAppliesToAHospital(heWang, fairviewHealth, heWang85654);

                ResidencyPlacement.Application heWang74959 = new ResidencyPlacement.Application();
                heWang74959.Hospital = 74959;
                system.StudentAppliesToAHospital(heWang, madisonChildren, heWang74959);

                ResidencyPlacement.Application heWang59885 = new ResidencyPlacement.Application();
                heWang59885.Hospital = 59885;
                system.StudentAppliesToAHospital(heWang, mercyMedical, heWang59885);

                system.StudentAttendsInterview(heWang, mercyMedical, 17);

                ResidencyPlacement.Application heWang53347 = new ResidencyPlacement.Application();
                heWang53347.Hospital = 53347;
                system.StudentAppliesToAHospital(heWang, universityOfChicago, heWang53347);

                ResidencyPlacement.Application heWang16748 = new ResidencyPlacement.Application();
                heWang16748.Hospital = 16748;
                system.StudentAppliesToAHospital(heWang, kingsCounty, heWang16748);

                ResidencyPlacement.Application johnPeterson74959 = new ResidencyPlacement.Application();
                johnPeterson74959.Hospital = 74959;
                system.StudentAppliesToAHospital(johnPeterson, madisonChildren, johnPeterson74959);

                ResidencyPlacement.Application johnPeterson59885 = new ResidencyPlacement.Application();
                johnPeterson59885.Hospital = 59885;
                system.StudentAppliesToAHospital(johnPeterson, mercyMedical, johnPeterson59885);

                ResidencyPlacement.Application johnPeterson16748 = new ResidencyPlacement.Application();
                johnPeterson16748.Hospital = 16748;
                system.StudentAppliesToAHospital(johnPeterson, kingsCounty, johnPeterson16748);

                ResidencyPlacement.Application johnPeterson12744 = new ResidencyPlacement.Application();
                johnPeterson12744.Hospital = 12744;
                system.StudentAppliesToAHospital(johnPeterson, harlemMedical, johnPeterson12744);

                system.StudentAttendsInterview(johnPeterson, harlemMedical, 17);

                ResidencyPlacement.Application johnPeterson36857 = new ResidencyPlacement.Application();
                johnPeterson36857.Hospital = 36857;
                system.StudentAppliesToAHospital(johnPeterson, monroeVeterans, johnPeterson36857);

                ResidencyPlacement.Application lucyGerald85654 = new ResidencyPlacement.Application();
                lucyGerald85654.Hospital = 85654;
                system.StudentAppliesToAHospital(lucyGerald, fairviewHealth, lucyGerald85654);

                ResidencyPlacement.Application lucyGerald57474 = new ResidencyPlacement.Application();
                lucyGerald57474.Hospital = 57474;
                system.StudentAppliesToAHospital(lucyGerald, northwesternMemorial, lucyGerald57474);

                ResidencyPlacement.Application jenniferMcIntosh74959 = new ResidencyPlacement.Application();
                jenniferMcIntosh74959.Hospital = 74959;
                system.StudentAppliesToAHospital(jenniferMcIntosh, madisonChildren, jenniferMcIntosh74959);

                ResidencyPlacement.Application jenniferMcIntosh59885 = new ResidencyPlacement.Application();
                jenniferMcIntosh59885.Hospital = 59885;
                system.StudentAppliesToAHospital(jenniferMcIntosh, mercyMedical, jenniferMcIntosh59885);

                system.StudentAttendsInterview(jenniferMcIntosh, mercyMedical, 18);
                system.StudentIsSelectedAndOffered(jenniferMcIntosh, mercyMedical);
                system.StudentRepliesToOffer(jenniferMcIntosh, mercyMedical, true);

                ResidencyPlacement.Application jenniferMcIntosh17853 = new ResidencyPlacement.Application();
                jenniferMcIntosh17853.Hospital = 17853;
                system.StudentAppliesToAHospital(jenniferMcIntosh, newYorkCommunity, jenniferMcIntosh17853);

                ResidencyPlacement.Application jenniferMcIntosh12744 = new ResidencyPlacement.Application();
                jenniferMcIntosh12744.Hospital = 12744;
                system.StudentAppliesToAHospital(jenniferMcIntosh, harlemMedical, jenniferMcIntosh12744);

                system.StudentAttendsInterview(jenniferMcIntosh, harlemMedical, 18);

                ResidencyPlacement.Application jianXiang74959 = new ResidencyPlacement.Application();
                jianXiang74959.Hospital = 74959;
                system.StudentAppliesToAHospital(jianXiang, madisonChildren, jianXiang74959);

                system.StudentAttendsInterview(jianXiang, madisonChildren, 18);

                ResidencyPlacement.Application jianXiang57474 = new ResidencyPlacement.Application();
                jianXiang57474.Hospital = 57474;
                system.StudentAppliesToAHospital(jianXiang, northwesternMemorial, jianXiang57474);

                system.StudentAttendsInterview(jianXiang, northwesternMemorial, 19);
                system.StudentIsSelectedAndOffered(jianXiang, northwesternMemorial);
                system.StudentRepliesToOffer(jianXiang, northwesternMemorial, false);

                ResidencyPlacement.Application jianXiang59885 = new ResidencyPlacement.Application();
                jianXiang59885.Hospital = 59885;
                system.StudentAppliesToAHospital(jianXiang, mercyMedical, jianXiang59885);

                system.StudentAttendsInterview(jianXiang, mercyMedical, 20);
                system.StudentIsSelectedAndOffered(jianXiang, mercyMedical);
                system.StudentRepliesToOffer(jianXiang, mercyMedical, true);

                ResidencyPlacement.Application jianXiang16748 = new ResidencyPlacement.Application();
                jianXiang16748.Hospital = 16748;
                system.StudentAppliesToAHospital(jianXiang, kingsCounty, jianXiang16748);

                system.StudentAttendsInterview(jianXiang, kingsCounty, 20);
                system.StudentIsSelectedAndOffered(jianXiang, kingsCounty);
                system.StudentRepliesToOffer(jianXiang, kingsCounty, false);

                ResidencyPlacement.Application jianXiang53347 = new ResidencyPlacement.Application();
                jianXiang53347.Hospital = 53347;
                system.StudentAppliesToAHospital(jianXiang, universityOfChicago, jianXiang53347);

                ResidencyPlacement.Application jianXiang17853 = new ResidencyPlacement.Application();
                jianXiang17853.Hospital = 17853;
                system.StudentAppliesToAHospital(jianXiang, newYorkCommunity, jianXiang17853);

                system.StudentAttendsInterview(jianXiang, newYorkCommunity, 18);

                ResidencyPlacement.Application geethaRamesh17853 = new ResidencyPlacement.Application();
                geethaRamesh17853.Hospital = 17853;
                system.StudentAppliesToAHospital(geethaRamesh, newYorkCommunity, geethaRamesh17853);

                system.StudentAttendsInterview(geethaRamesh, newYorkCommunity, 20);
                system.StudentIsSelectedAndOffered(geethaRamesh, newYorkCommunity);

                ResidencyPlacement.Application geethaRamesh16748 = new ResidencyPlacement.Application();
                geethaRamesh16748.Hospital = 16748;
                system.StudentAppliesToAHospital(geethaRamesh, kingsCounty, geethaRamesh16748);

                system.StudentAttendsInterview(geethaRamesh, kingsCounty, 20);
                system.StudentIsSelectedAndOffered(geethaRamesh, kingsCounty);

                ResidencyPlacement.Application geethaRamesh53347 = new ResidencyPlacement.Application();
                geethaRamesh53347.Hospital = 53347;
                system.StudentAppliesToAHospital(geethaRamesh, universityOfChicago, geethaRamesh53347);

                system.StudentAttendsInterview(geethaRamesh, universityOfChicago, 20);
                system.StudentIsSelectedAndOffered(geethaRamesh, universityOfChicago);

                ResidencyPlacement.Application geethaRamesh59885 = new ResidencyPlacement.Application();
                geethaRamesh59885.Hospital = 59885;
                system.StudentAppliesToAHospital(geethaRamesh, mercyMedical, geethaRamesh59885);

                system.StudentAttendsInterview(geethaRamesh, mercyMedical, 19);
                system.StudentIsSelectedAndOffered(geethaRamesh, mercyMedical);
                system.StudentRepliesToOffer(geethaRamesh, mercyMedical, true);

                ResidencyPlacement.Application geethaRamesh57474 = new ResidencyPlacement.Application();
                geethaRamesh57474.Hospital = 57474;
                system.StudentAppliesToAHospital(geethaRamesh, northwesternMemorial, geethaRamesh57474);

                ResidencyPlacement.Application geethaRamesh74959 = new ResidencyPlacement.Application();
                geethaRamesh74959.Hospital = 74959;
                system.StudentAppliesToAHospital(geethaRamesh, madisonChildren, geethaRamesh74959);

                ResidencyPlacement.Application cindyMylopoulos85654 = new ResidencyPlacement.Application();
                cindyMylopoulos85654.Hospital = 85654;
                system.StudentAppliesToAHospital(cindyMylopoulos, fairviewHealth, cindyMylopoulos85654);

                ResidencyPlacement.Application cindyMylopoulos36857 = new ResidencyPlacement.Application();
                cindyMylopoulos36857.Hospital = 36857;
                system.StudentAppliesToAHospital(cindyMylopoulos, monroeVeterans, cindyMylopoulos36857);

                ResidencyPlacement.Application cindyMylopoulos15552 = new ResidencyPlacement.Application();
                cindyMylopoulos15552.Hospital = 15552;
                system.StudentAppliesToAHospital(cindyMylopoulos, bloomingtonCity, cindyMylopoulos15552);

                system.StudentAttendsInterview(cindyMylopoulos, bloomingtonCity, 20);

                ResidencyPlacement.Application cindyMylopoulos12744 = new ResidencyPlacement.Application();
                cindyMylopoulos12744.Hospital = 12744;
                system.StudentAppliesToAHospital(cindyMylopoulos, harlemMedical, cindyMylopoulos12744);

                ResidencyPlacement.Application cindyMylopoulos17853 = new ResidencyPlacement.Application();
                cindyMylopoulos17853.Hospital = 17853;
                system.StudentAppliesToAHospital(cindyMylopoulos, newYorkCommunity, cindyMylopoulos17853);

                ResidencyPlacement.Application cindyMylopoulos16748 = new ResidencyPlacement.Application();
                cindyMylopoulos16748.Hospital = 16748;
                system.StudentAppliesToAHospital(cindyMylopoulos, kingsCounty, cindyMylopoulos16748);
            }
            catch
            {

            }

            App app = new App();
            app.InitializeComponent();
            app.Run();
        }

        public static ResidencySystem ResSystem
        {
            get
            {
                return system;
            }
        }
    }
}
